/**
 * Created by Yu Jin Xian on 2016/11/24.
 */
var http = require('http');
http.createServer(ouputText).listen(3000);

function ouputText(req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('hello world!');
}

console.log('Server started on http://localhost:3000; press Ctrl+C to terminate....');